package com.csu.device.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Behavior implements Serializable {

    private static final long serialVersionUID = 1L;

    private String site="";//位置
    private String stieLeft="";//上下位置
    private String deviceName="";//设备名称
    private String deviceSn;//设备编号
    private String vTime;

    public String getvTime() {

        if (null != getStartTime()) {
            SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
            vTime = sdf.format(getStartTime());
        }

        return vTime;
    }

    public void setvTime(String vTime) {
        this.vTime = vTime;
    }

    public String getSite() {
        return site;
    }

    public void setSite(String site) {
        this.site = site;
    }

    public String getStieLeft() {
        return stieLeft;
    }

    public void setStieLeft(String stieLeft) {
        this.stieLeft = stieLeft;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

    //主键
    private Integer id;
    //应用程序id 来自哪个平台
    private String applicationId;
    //数据类型 0体征检测设备 1传感器设备 2定位设备 3睡眠检测设备
    private Integer behaviorType;
    //开始时间
    private Date startTime;
    //结束时间
    private Date endTime;
    //网关id
    private String gatewayId;
    //设备id
    private String equipmentId;
    //老人id
    private String familyUserId;
    //老人名称
    private String familyUserName="";
    //家庭编号
    private String familyId;
    //家庭名称
    private String familyName="";
    //场景id
    private String sceneId;
    //场景名称
    private String sceneName="";
    //json数据
    private String dataValue;
    //备注信息
    private String remark;

    //是否异常，0 正常 1异常
    private Integer anomalies = 0;

    private Integer level = 1;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getApplicationId() {
        return applicationId;
    }

    public void setApplicationId(String applicationId) {
        this.applicationId = applicationId;
    }

    public Integer getBehaviorType() {
        return behaviorType;
    }

    public void setBehaviorType(Integer behaviorType) {
        this.behaviorType = behaviorType;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getGatewayId() {
        return gatewayId;
    }

    public void setGatewayId(String gatewayId) {
        this.gatewayId = gatewayId;
    }

    public String getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    public String getFamilyUserId() {
        return familyUserId;
    }

    public void setFamilyUserId(String familyUserId) {
        this.familyUserId = familyUserId;
    }

    public String getFamilyUserName() {
        return familyUserName;
    }

    public void setFamilyUserName(String familyUserName) {
        this.familyUserName = familyUserName;
    }

    public String getFamilyId() {
        return familyId;
    }

    public void setFamilyId(String familyId) {
        this.familyId = familyId;
    }

    public String getFamilyName() {
        return familyName;
    }

    public void setFamilyName(String familyName) {
        this.familyName = familyName;
    }

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }

    public String getSceneName() {
        return sceneName;
    }

    public void setSceneName(String sceneName) {
        this.sceneName = sceneName;
    }

    public String getDataValue() {
        return dataValue;
    }

    public void setDataValue(String dataValue) {
        this.dataValue = dataValue;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getAnomalies() {
        return anomalies;
    }

    public void setAnomalies(Integer anomalies) {
        this.anomalies = anomalies;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }
}
